using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LittleAsteroidController : AsteroidController
{
    // Start is called before the first frame update
    private void Start()
    {
        movementSpeed = 2f;
        rotationSpeed = 4f;
        
        base.Start();
    }
    
    
    protected override void DestroySelf()
    {
        // 此处必须重载父类中的方法，否则会调用父类中的DestroyAsteroid的方法，
        // 从而调用CreateLittleAsteroids方法，导致出错
        gameManager.AddScore(scoreValue);
        Destroy(gameObject);
    }
}
